package com.itheima.objectstream;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;

/*
对象的反序列化流
 */
public class Demo02 {

    public static void main(String[] args) throws IOException, ClassNotFoundException {
        ObjectInputStream ois = new ObjectInputStream(new FileInputStream("day13\\g.txt"));
        //读对象
        Object o = ois.readObject();
        System.out.println(o);
        ois.close();


    }

}
